/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2022-12-13
 * Time: 13:07
 */
public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList2 myLinkedList2 = new MyLinkedList2();
        myLinkedList2.addFirst(12);
        myLinkedList2.addFirst(22);
        myLinkedList2.addFirst(23);
        myLinkedList2.addFirst(34);
        myLinkedList2.addFirst(45);
        myLinkedList2.addFirst(56);
        myLinkedList2.addFirst(45);
        myLinkedList2.addFirst(34);
        myLinkedList2.addFirst(23);
        myLinkedList2.addFirst(22);
        myLinkedList2.addFirst(12);
        myLinkedList2.display();
        System.out.println(myLinkedList2.chkPalindrome(myLinkedList2.head));
//        ListNode ret = myLinkedList2.reverseList();
//        myLinkedList2.display2(ret);
    }
}
